<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
	<xsl:template match="/">
		<html xmlns="http://www.w3.org/1999/xhtml">
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
				<title>系统主菜单</title>
				<link href="../static/css/style.css" rel="stylesheet" type="text/css" />
				<script language="JavaScript" src="../static/js/jquery.js"></script>
				<script type="text/javascript">
					$(function(){
					//导航切换
					$(".menuson li").click(function(){
					$(".menuson li.active").removeClass("active")
					$(this).addClass("active");
					});

					$('.title').click(function(){
					var $ul =
					$(this).next('ul');
					$('dd').find('ul').slideUp();
					if($ul.is(':visible')){
					$(this).next('ul').slideUp();
					}else{
					$(this).next('ul').slideDown();
					}
					});
					})
				</script>
			</head>
			<body style="background:#f0f9fd;">
				<div class="lefttop"> 主菜单 </div>
				<dl class="leftmenu">
					<xsl:for-each select="mainmenu/menu">
						<dd>
							<div class="title">
								<span>
									<xsl:element name="img">
										<xsl:attribute name="src"><xsl:value-of select="@imgsrc" /></xsl:attribute>
										<xsl:apply-templates />
									</xsl:element>
									<xsl:value-of select="@title" />
								</span>
							</div>
							<ul class="menuson">
								<xsl:for-each select="item">
									<li>
										<xsl:element name="cite">
										</xsl:element>
										<xsl:element name="a">
											<xsl:attribute name="href"> <xsl:value-of select="@url" /> </xsl:attribute>
											<xsl:attribute name="target"> <xsl:value-of select="@target" /> </xsl:attribute>
											<xsl:value-of select="@title" />
										</xsl:element>
									</li>
								</xsl:for-each>
							</ul>
						</dd>
					</xsl:for-each>
				</dl>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
